<%@ page import="org.ikastola.Course" %>



<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="course.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${courseInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'shift', 'error')} required">
	<label for="shift">
		<g:message code="course.shift.label" default="Shift" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="shift" from="${courseInstance.constraints.shift.inList}" required="" value="${fieldValue(bean: courseInstance, field: 'shift')}" valueMessagePrefix="course.shift"/>
</div>

<div class="fieldcontain ${hasErrors(bean: courseInstance, field: 'division', 'error')} ">
	<label for="division">
		<g:message code="course.division.label" default="Division" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="division" from="${courseInstance.constraints.division.inList}" required="" value="${fieldValue(bean: courseInstance, field: 'division')}"/>
</div>

